<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		var w=window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;

		var h=window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;

		// document.write(w);
		// document.write("<br>");
		// document.write(h);
		// 
		function run () {
			alert(777)
		}


		// time = setInterval(run, 2000);
		// 
		setTimeout(run,3000);

		


	</script>
</head>
<body>
	<p onclick="clearInterval(time);">暂停</p>
</body>
</html>